pkgname=vdr-sleeptimer
pkgver=0.7
pkgrel=1
arch=('i686')
pkgdesc="A sleep-timer plugin for VDR"
url="http://linvdr.org/projects/sleeptimer/"
license=('GPL')
depends=('vdr' 'gcc')
source=(http://linvdr.org/download/$pkgname/sleeptimer-$pkgver.tar.gz)
md5sums=('0fe1c0156f41509af7fdde7dc00f08b7')

build() {
  cd $startdir/src/sleeptimer-$pkgver

  sed -i \
	 -e 's:@cp $@ :install -D -m 755 $@ $(DESTDIR):' \
	 Makefile
  make VDRDIR=/usr/include/vdr LIBDIR=/usr/lib/vdr DESTDIR=$startdir/pkg all || return 1
}
